/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.student.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 学生管理Entity
 * @author lihuan
 * @version 2018-12-04
 */
public class Student extends DataEntity<Student> {
	
	private static final long serialVersionUID = 1L;
	private String stuName;		// 学生姓名
	private String stuCode;		// 学生编码
	private Integer age;		// 年龄
	private String gender;		  // 性别
	private String nation;		  // 民族
	private Date birthday;        // 出生日期
	private Date beginDate;       //出生起始日期
	private Date endDate;         //出生截止日期
	private String remakes;		  // 备注
	private String stuClass;      // 学生班级
	private String stuGrade;      // 年级
	private String enrtYear;      //入学年份
	private String schoolCode;    //学校编码 
	private String schoolName;    //学校名称 
	private String classCode;     //班级编码
	private String className;     //班级名称
	
	public Student() {
		super();
	}

	public Student(String id){
		super(id);
	}

	public Integer getAge() {
		return age;
	}

	public String getClassCode() {
		return classCode;
	}

	public void setClassCode(String classCode) {
		this.classCode = classCode;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getStuGrade() {
		return stuGrade;
	}

	public void setStuGrade(String stuGrade) {
		this.stuGrade = stuGrade;
	}

	public String getSchoolCode() {
		return schoolCode;
	}

	public void setSchoolCode(String schoolCode) {
		this.schoolCode = schoolCode;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public String getEnrtYear() {
		return enrtYear;
	}

	public void setEnrtYear(String enrtYear) {
		this.enrtYear = enrtYear;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Length(min=0, max=64, message="学生姓名长度必须介于 0 和 64 之间")
	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	
	@Length(min=0, max=64, message="学生编码长度必须介于 0 和 64 之间")
	public String getStuCode() {
		return stuCode;
	}

	public void setStuCode(String stuCode) {
		this.stuCode = stuCode;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}
	
	@Length(min=0, max=64, message="民族长度必须介于 0 和 64 之间")
	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}
	
	//@Length(min=0, max=12, message="出生日期长度必须介于 0 和 12 之间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	@Length(min=0, max=255, message="备注长度必须介于 0 和 255 之间")
	public String getRemakes() {
		return remakes;
	}

	public void setRemakes(String remakes) {
		this.remakes = remakes;
	}
	
	@Length(min=0, max=64, message="学生班级长度必须介于 0 和 64 之间")
	public String getStuClass() {
		return stuClass;
	}

	public void setStuClass(String stuClass) {
		this.stuClass = stuClass;
	}
	
}